//
//  MineAppraiseTBVCell.m
//  XJMTechnician
//
//  Created by Mr.hu on 2017/10/17.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "MineAppraiseTBVCell.h"

@implementation MineAppraiseTBVCell

- (void)setdata:(NSDictionary *)dict{
    
    self.AppraiseItemLab.text = dict[@"nick_name"];
    self.AppraiseTimeLab.text = dict[@"add_time"];
    [self.AppraiseHeadImage sd_setImageWithURL:[NSURL URLWithString:dict[@"headurl"]] placeholderImage:[UIImage imageNamed:@"touxiang"]];
    self.AppraiseHeadImage.layer.cornerRadius = 22;
    self.AppraiseHeadImage.layer.masksToBounds = YES;
//    type    0：好评 1：差评
    if ([dict[@"type"] isEqualToString:@"0"]) {
        [self.Appraise_image setImage:[UIImage imageNamed:@"haoping"]];
    }else{
        [self.Appraise_image setImage:[UIImage imageNamed:@"chaping"]];
    }
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
